.f-component-loading {
  z-index: 1060;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
}

.farris-loading-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: $farris-loading-z-index;
  opacity: 0;
  background-color: transparent;
}

.farris-loading {
  position: absolute;
  top: 50%;
  left: 50%;
}

.ng-busy-default-wrapper {
  text-align: center;
}

.ng-busy-default-sign {
  position: relative;
  display: flex;
  align-items: center;
  z-index: $farris-loading-z-index + 2;
  padding: 8px 16px 8px 8px;

  border: $f-modal-content-border-width solid $f-modal-content-border-color;
  border-radius: $farris-loading-border-radius;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.06), 0 0 30px 12px rgba(0, 0, 0, 0.04);
  background: #fff;
  color: $f-text-02;
}

.ng-busy-default-text {
  display: inline-block;
  margin-left: 0.375rem;
  max-width: 25rem;
  text-align: left;
  padding: 0 4px;
  font-size: 15px;
  color: $f-text-02;
}

.ng-busy-default-spinner {
  position: relative;
  display: inline-block;
  width: 1.5625rem;
  height: 1.5625rem;
  vertical-align: middle;

  div {
    position: absolute;
    left: 44.5%;
    top: 37%;
    width: 10%;
    height: 26%;
    background: #666;
    border-radius: 3.125rem;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    -webkit-animation: busy-spinner-anim 1s linear infinite;
    animation: busy-spinner-anim 1s linear infinite;
  }
}

.f-loading-round {
  font-size: 10px;
  margin: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  animation: f-loadingRountAnimation 1s infinite linear;
  transform: translateZ(0);

  &::before {
    width: 50%;
    height: 50%;
    background: $farris-primary;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
  }

  &::after {
    background: #ffffff;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
}

@-webkit-keyframes f-loadingRountAnimation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes f-loadingRountAnimation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.f-loading-dot-wrapper {
  .dot1 {
    background: $farris-danger;
  }

  .dot2 {
    background: $farris-warning;
  }

  .dot3 {
    background: $farris-success;
  }

  .dot4 {
    background: $farris-info;
  }
}

.f-loading-dot {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  animation: loadingDotRotate 1.8s linear infinite;
  overflow: hidden;
}

.f-loading-dot-wrapper {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;

  .dot {
    position: absolute;
    margin: auto;
    width: 25%;
    height: 25%;
    border-radius: 100%;
    transition: all 1s ease;
  }

  .dot1 {
    top: 0;
    bottom: 0;
    left: 0;
    animation: dotsY 1.8s linear infinite;
  }

  .dot2 {
    left: 0;
    right: 0;
    top: 0;
    animation: dotsX 1.8s linear infinite;
  }

  .dot3 {
    top: 0;
    bottom: 0;
    right: 0;
    animation: dotsY 1.8s linear infinite;
  }

  .dot4 {
    left: 0;
    right: 0;
    bottom: 0;
    animation: dotsX 1.8s linear infinite;
  }
}

@keyframes loadingDotRotate {
  0% {
    transform: rotate(0);
  }

  10% {
    width: 100%;
    height: 100%;
  }

  66% {
    width: 25%;
    height: 25%;
  }

  100% {
    transform: rotate(360deg);
    width: 100%;
    height: 100%;
  }
}

@keyframes dotsY {
  66% {
    opacity: 0.3;
    width: 25%;
  }

  77% {
    opacity: 1;
    width: 0;
  }
}

@keyframes dotsX {
  66% {
    opacity: 0.3;
    height: 25%;
  }

  77% {
    opacity: 1;
    height: 0;
  }
}